package com.cw.mapper2;

import com.cw.entity.HisCwglBed;
import com.cw.entity.PatientBedMiddlePrebundled;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cw.request.AllSickBedsRequest;
import com.cw.vo.LeaveAdviceVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 预绑定患者信息表 Mapper 接口
 * </p>
 *
 * @author ly
 * @since 2024-02-19
 */
@Repository
public interface PatientBedMiddlePrebundledMapper extends BaseMapper<PatientBedMiddlePrebundled> {

    /**
     * 查询预绑定下的集管床位
     * @param param
     * @return
     */
    List<HisCwglBed> getBoundGyBeds(AllSickBedsRequest param);

    /**
     * 获得出院医嘱信息
     * 今日出院以及明日出院的患者信息
     * @param inpatientNoList
     * @return
     */
    List<LeaveAdviceVO> leaveAdviceList(List<String> inpatientNoList);

    /**
     * 根据病人id跟床位号查询预绑定信息
     *
     * @param bedNo
     * @return
     */
    PatientBedMiddlePrebundled getPatientById(@Param("bedNo") String bedNo);

    /**
     * 获取预绑定患者信息
     * @return
     */
    List<PatientBedMiddlePrebundled> patientList();
}
